import { RouteConfig } from "vue-router";
import Detail from '@/pages/product/detail.vue';
import Order from '@/pages/product/order.vue';
import { ROUTE_NAME } from "@/lib/constant";

export const routes: RouteConfig[] = [
    {
        path: '/product/detail/:productId',
        name: ROUTE_NAME.PRODUCT_DETAIL,
        meta: {
            title: '商品详情',
            needInfo: true,
        },
        component: Detail,
    },
    {
        path: '/product/order/:shopId?',
        name: ROUTE_NAME.PRODUCT_ORDER,
        meta: {
            title: '填写订单',
            needInfo: true,
        },
        component: Order,
    },
];
